/* eslint-disable */

/*
 * @Date: 2021-12-24 13:52:49
 * @LastEditors: Drc
 * @LastEditTime: 2021-12-24 14:49:34
 */

//判断是否是邮箱
String.prototype.isEmail = function () {
  const reg =
    /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/

  return reg.test(this as string)
}

export default {}
